//向项目中添加UnoCSS的presets

import {
  defineConfig,
  presetAttributify,
  presetIcons,
  presetTypography,
  presetUno,
  presetWebFonts,
  transformerDirectives,
  transformerVariantGroup,
} from "unocss";

export default defineConfig({
  //presets:[], //设置空，取消默认的presets
  //rules:[],//自定义rules
  shortcuts: [
    { 'cool-blue': 'bg-blue-500 text-white' },
    { 'cool-green': 'bg-green-500 text-black' },
    // ...
  ],
  theme: {
    colors: {
      // ...
    },
  },
  presets: [
    presetUno(),
    presetAttributify(),
    presetIcons(),
    presetTypography(),
    presetWebFonts({
      fonts: {
        // ...
      },
    }),
  ],
  transformers: [transformerDirectives(), transformerVariantGroup()],
  content: {
    filesystem: [
      'src/**/*.php',
      'public/*.html',
    ],
    pipeline: {
      include: [
        // the default
        /\.(vue|svelte|[jt]sx|mdx?|astro|elm|php|phtml|html)($|\?)/,
        // include js/ts files
        "src/**/*.{js,ts}",
      ],
      // exclude files
      // exclude: []
    },
  },
});
